package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 销售订单产品对象 mes_sord_prod
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
public class MesSordProd extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer id;

    /** 销售订单编码 */
    @Excel(name = "销售订单编码")
    private String sordId;

    private String oldSordId;

    public String getOldSordId() {
        return oldSordId;
    }

    public void setOldSordId(String oldSordId) {
        this.oldSordId = oldSordId;
    }

    public List<MesSordProd> getMtrs() {
        return mtrs;
    }

    public void setMtrs(List<MesSordProd> mtrs) {
        this.mtrs = mtrs;
    }

    private List<MesSordProd> mtrs;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String prodId;

    /** 产品数量 */
    @Excel(name = "产品数量")
    private Long prodNum;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setSordId(String sordId) 
    {
        this.sordId = sordId;
    }

    public String getSordId() 
    {
        return sordId;
    }
    public void setProdId(String prodId) 
    {
        this.prodId = prodId;
    }

    public String getProdId() 
    {
        return prodId;
    }
    public void setProdNum(Long prodNum) 
    {
        this.prodNum = prodNum;
    }

    public Long getProdNum() 
    {
        return prodNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sordId", getSordId())
            .append("prodId", getProdId())
            .append("prodNum", getProdNum())
            .toString();
    }
}
